package com.sjb.sixteen_journey_backend.service;

import com.sjb.sixteen_journey_backend.common.R;
import com.sjb.sixteen_journey_backend.entity.MyMap;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sjb.sixteen_journey_backend.entity.dto.MyMapDto;
import com.sjb.sixteen_journey_backend.entity.vo.MyMapVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 我的地图表 服务类
 * </p>
 *
 * @author jcz
 * @since 2024-07-25
 */
public interface IMyMapService extends IService<MyMap> {

    R<MyMap> addMyMap(MyMapDto myMapDto);

    R removeMyMap(Integer myMapId);

    R<MyMap> showMapById(Integer id,Boolean f);


    R changeAuthorityIsPublic(Integer id, Boolean isPublic);

    R<MyMap> changeMapName(Integer id, String name);

    R<MyMap> changeMapAvatar(Integer id, MultipartFile file);

    R<MyMap> changeMapRemarks(Integer id, String content);

    R<List<MyMapVo>> showAllMap();

    R<List<MyMapVo>> showCityMap(String city);

    R<List<MyMapVo>> showMapByUserId();

    public List<MyMapVo> getListMyMapVo(List<MyMap> myMaps);

    R<List<MyMapVo>> showPublicMapById(Integer id);

    R<List<MyMapVo>> showPublicMapByKeyWords(String keyWords);



}
